package org.ptkparty.client.ui;

import com.google.gwt.event.logical.shared.ResizeEvent;
import com.google.gwt.event.logical.shared.ResizeHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.SimplePanel;

public class FullScreenSimplePanel extends SimplePanel implements ResizeHandler {

	@Override
	protected void onLoad() {
		super.onLoad();
		Window.addResizeHandler(this);
		onResize(null);
	}

	@Override
	public void onResize(ResizeEvent event) {
		setHeight(Window.getClientHeight() + "px");
		setWidth(Window.getClientWidth() + "px");
	}
}
